package com.guigu.tms.aggregation.controller;

import com.guigu.tms.aggregation.service.IGoodsTypeService;
import com.guigu.tms.commons.aggregation.entity.GoodsType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 货物类型表 前端控制器
 * </p>
 *
 * @author wj
 * @since 2022-10-21
 */
@RestController
@RequestMapping("/goodsType")
public class GoodsTypeController {
    @Autowired
    private IGoodsTypeService goodsTypeService;
    @GetMapping("/getGoodsType")
    public List<GoodsType> getGoodsType(){
        return goodsTypeService.list();
    }
}
